import { http } from "@/utils/http"

/**
 * 获取用户详细信息
 */
export const getInfo = () => {
    return http({
        url: `/login/getUserInfoByToken`,
        method: 'POST',
    })
}

/**
 * 修改用户信息
 */
export const editUser = (data) => {
    return http({
        url: `/login/updateUserProfile`,
        method: 'POST',
        data,
    })
}

/**
 * 注册接口
 */
export const register = (data) => {
    return http({
        method: 'POST',
        url: '/login/register',
        data,
    })
}